]> dgit.raspbian.org Git - gnome-shell.git/commit
ControlsManagerLayout: Allocate respecting the work area
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 18 Jun 2021 17:51:02 +0000 (19:51 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 16 Jul 2021 22:25:50 +0000 (00:25 +0200)
commit81a1e294f8bd161410233961d2cae4f87304d577
treef93a0e8aa9219558bec8bc70009c508fe628e351
parent2b074882f44c32862e3b7984a42888ada1478259
ControlsManagerLayout: Allocate respecting the work area

We build controls layout using the whole monitor vertical space as
available, however extensions or external apps in X11 may reduce the
workarea size horizontally and the shell should always take care of it.

Given that we're already assuming that the allocation is monitor-based
and that we're adjusting it to the workarea, we can just make it more
explicit by using a workarea box that is used as the allocation area.

As per this, we also apply the same logic of applied to the vertical
dimension to the horizontal one.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1892>
js/ui/overviewControls.js